
<div class="col-md-4" id="user">

    <div class="panel panel-default">
        <div class="panel-heading menu"><a href="{tsUrl('group',$ac,array('id'=>$strGroup['groupid']))}#user" {if (!$usertype)}class="active"{/if}>{$strGroup['role_user']}</a> {if $strGroup['isplace']>0}| <a href="{tsUrl('group',$ac,array('id'=>$strGroup['groupid'],'usertype'=>1))}#user" {if ($usertype==1)}class="active"{/if} >活跃{$strGroup['role_user']}</a>{/if}{if $strGroup['isplace']==2} |  <a href="{tsUrl('group',$ac,array('id'=>$strGroup['groupid'],'usertype'=>2))}#user" {if ($usertype==2)}class="active"{/if} >馆东</a> |  <a href="{tsUrl('group',$ac,array('id'=>$strGroup['groupid'],'usertype'=>4))}#user" {if ($usertype==4)}class="active"{/if} >教练</a>{/if} <small style="float: right"><a href="{tsUrl('group','user',array('id'=>$strGroup['groupid'],'usertype'=>$usertype))}"> 更多 </a></small></div>
        <div class="panel-body">
            <div class="facelist">
                <ul>
                    {if $arrGroupUser}
                {loop $arrGroupUser $key $item}
                <li>
                    <a href="{tsUrl('user','duty',array('id'=>$item[userid],'groupid'=>$groupid))}" rel="face" uid="{$item['userid']}"><img class="img-circle" src="{$item[face]}" width="48" height="48" alt="{$item[username]}" title="{$item[username]}" /></a>
                    <div class="username"><a href="{tsUrl('user','duty',array('id'=>$item[userid],'groupid'=>$groupid))}">{$item[username]}</a>
                        {if $item['isstock']==1||$item['isstock']==2}&nbsp;<i class="fa fa-superpowers" style="color: #ff9800"></i>{/if}
                        {if $item['isstock']==-1&&($TS_USER['isadmin']=='1'||$TS_USER['userid']==$item[userid])}&nbsp;<i class="fa fa-superpowers" style="color: grey"></i>{/if}
                    </div>
                </li>
                {/loop}
                    {else}
                    <li>暂无</li>
                    {/if}
                </ul>
            </div>
</div>
</div>
    {if $TS_USER['userid'] == $strGroup['userid'] || $TS_USER['isadmin']=='1'}
    <div class="panel panel-default">
        <div class="panel-heading">管理</div>
        <div class="panel-body">

<p class="pl2">&gt; <a href="{tsUrl('group','edit',array(groupid=>$strGroup[groupid],ts=>base))}">小组设置</a></p>
<p class="pl2">&gt; <a href="{tsUrl('group','vo',array(groupid=>$strGroup[groupid]))}">打捞馆员</a></p>
<p class="pl2">&gt; <a href="{tsUrl('group','stock',array(groupid=>$strGroup[groupid]))}">打捞馆东</a></p>
<p class="pl2">&gt; <a href="{tsUrl('group','audit',array('groupid'=>$strGroup[groupid]))}">话题审核</a>({$strGroup['count_topic_audit']})</p>
{if $strGroup['count_user']==1&&$strGroup['count_article']==0&&$strGroup['count_duty']==0 }
<p class="pl2">&gt; <a onclick="del({$strGroup['groupid']})">解散小组</a></p>
 {/if}

</div>
</div>

    {/if}

<div class="clear"></div>
<!--广告位-->
{php doAction('gobad','300')}

</div>
</div>
<script>
    //筛选分馆
    function jumpto(url,typeid){
        window.location.href=url+'&typeid='+typeid+'#info';
    }



    //删除小组
    function del(groupid){

        if (confirm('真的要删除小组吗？')) {
            $.ajax({
                type: "POST",
                url: siteUrl+"index.php?app=group&ac=do&ts=delgroup",
                data: "groupid="+groupid,
                beforeSend:function(){
                },
                success:function(result){
                    if(result == '1'){
                        window.location.reload();
                    }
                }
            });
        }
    }
</script>